<?php
/**
 * Created by PhpStorm
 * User: whh
 * Date: 2022/12/7
 * Time: 13:45
 */

namespace app\common\model;


use think\Model;

/**
 * 书籍和源平台映射表
 * Class NovelMpParty
 * @package app\common\model
 */
class NovelMpParty extends Model
{
    use Common;

    protected $table = 'novel_mp_party';


    /**
     * 映射本站书籍
     * @return \think\model\relation\HasOne
     * @Author: whh
     */
    public function novel()
    {
        return $this->hasOne(Novel::class, 'id', 'novel_id');
    }
}